Skip to content

Conversation

malteos
Copy link
Collaborator

@malteos malteos commented Sep 22, 2025

The pkg_resources package is deprecated. See https://setuptools.pypa.io/en/latest/pkg_resources.html

This PR replaces the pkg_resources import with importlib.metadata as suggested in the official docs:

Use of pkg_resources is deprecated in favor of importlib.resources, importlib.metadata and their backports (importlib_resources, importlib_metadata).

Copy link

codecov bot commented Sep 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.89%. Comparing base (b1fea6c) to head (da865e9).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   95.89%   95.89%           
=======================================
  Files           7        7           
  Lines         876      877    +1     
=======================================
+ Hits          840      841    +1     
  Misses         36       36           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@malteos malteos requested a review from wumpus September 22, 2025 13:15
@damian0815
Copy link

damian0815 commented Oct 9, 2025

+1 just ran into this problem trying to install cdx-toolkit with ootb uv pip (defaults to python 3.13)

@wumpus
Copy link
Member

wumpus commented Oct 9, 2025

If it passes the revamped CI, you don't need my permission to merge.

@malteos malteos merged commit ee9d19c into main Oct 10, 2025
12 checks passed
@malteos malteos deleted the fix/deprecated-pkg branch October 10, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants